<ul>

	<?php if(current_user()->is_new()): ?>
		Welcome, Guest!
		<ul>
			<li><a href="index.php">Home</a></li>
			<li><a href="?controller=User&amp;action=edit">register</a></li>
			<li><a href="?controller=User&amp;action=login">login</a></li>
		</ul>
	<?php else: ?>
		Welcome, 
		<a href="?controller=User&amp;action=edit&amp;id=<?= current_user()->id ?>">
			<?= current_user()->user_name ?>
		</a>!  
		(<a href="?controller=User&amp;action=logout">logout?</a>)
		<ul>
			<li>
				<a href="index.php">
					Home
				</a>
			</li>
			<li>
				<a href="?controller=Event&amp;action=edit">
					Add an event
				</a>
			</li>
			<li>
				<a href="?controller=Event&amp;action=view_list">
					View your events
				</a>
			</li>
		</ul>
	<?php endif ?>
</ul>